@(computerForm: Form[Computer],companies:List[(String,String)])

@import helper._

@main {
    
    <h1>Add a computer</h1>
    
    @form(routes.Application.save()) {
        
        <fieldset>
        
            @inputText(computerForm("name"), 'label -> "Computer name")(twitterBootstrapInput)
            @inputText(computerForm("introduced"), 'label -> "Introduced date")(twitterBootstrapInput)
            @inputText(computerForm("discontinued"), 'label -> "Discontinued date")(twitterBootstrapInput)

            @select(
                computerForm("company"), 
                companies, 
                'label -> "Company", 'default -> "-- Choose a company --"
            )(twitterBootstrapInput)
            

        </fieldset>
        
        <div class="actions">
            <input type="submit" value="Create this computer" class="btn primary"> or 
            <a href="@routes.Application.list()" class="btn">Cancel</a> 
        </div>
        
    }
    
}